<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
    <div class="aside">
        {template "left.html",'yellowpage'}
    </div>
    
    <div class="main">
    	{if $job==0}
        
        <ul class="nav nav-tabs">
              <li class="active"><a href="?module={$module}&file={$file}&action={$action}&userid={$_userid}">我的收藏</a></li>
              <li><a href="?module={$module}&file={$file}&action={$action}&job=1&userid={$_userid}" >被收藏的</a></li>
            </ul>
            
             
        <table cellpadding="0" cellspacing="1" class="table">
          <tr>
        <th>标题</th>
        <th width="120">收藏时间</th>
        <th width="110">操作</th>
          </tr>
        {loop $infos $info}
        <tr>
        <td>
        <a href="{$info[url]}" target="_blank">{$info[title]}</a>
        </td>
        <td>{date('Y-m-d H:i',$info[addtime])}</td>
        <td><a href="javascript:confirmurl('?module={$module}&file={$file}&action=delete&cid={$info[cid]}&userid={$_userid}','确认要删除此信息吗？')">删除</a></td>
        </tr>
        {/loop}
        </table>
        {else}
        
        
        <ul class="nav nav-tabs">
              <li><a href="?module={$module}&file={$file}&action={$action}&userid={$_userid}">我的收藏</a></li>
              <li class="active"><a href="?module={$module}&file={$file}&action={$action}&job=1&userid={$_userid}" >被收藏的</a></li>
            </ul>
            
        <table cellpadding="0" cellspacing="1" class="table">
          <tr>
        <th>标题</th>
        <th width="120">收藏人</th>
        <th width="120">收藏时间</th>
        <th width="40">发消息</th>
          </tr>
        {loop $infos $info}
        <tr>
        <td>
        <a href="{$info[url]}" target="_blank">{$info[title]}</a>
        </td>
        <td>{username($info[userid])}</td>
        <td>{date('Y-m-d H:i',$info[addtime])}</td>
        <td><a href="?module=message&action=send&userid={$info[vid]}" target="_blank">短消息</a></td>
        </tr>
        {/loop}
        </table>
        {/if}
        <div class="pagination">{$pages}</div>
    </div>
    
</div>


 
{template 'footer.html'}